package com.hl.mapper;

import com.hl.pojo.ArticleCategory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ArticleCategoryMapper {
    @Insert("insert into article_category set category_name = #{categoryName}")
    Integer add(ArticleCategory articleCategory);
    @Update("update article_category set del = 1 where id = #{id}")
    Integer del(ArticleCategory articleCategory);
    @Update("update article_category set category_name = #{categoryName} where id = #{id}")
    Integer update(ArticleCategory articleCategory);
}
